package chap5.Task;
import java.util.Scanner;

public class Task6 {
    public static void main(String[] args) {
        Scanner input = new Scanner(System.in);
        int[] a = new int[]{1, 1, 1, 4, 5, 6, 7, 7, 7, 8, 9, 7, 7, 10, 11};
        int j = 0;
        System.out.print("输入数字:");
        int b = input.nextInt();
        for (int i = 0; i < a.length; i++) {
            if (b == a[i])
                j++;
        }
        System.out.println(b + "在数组出现次数为" + j + "次");
    }
}
